package com.liangzhong.modules.talent.command
{
	import com.liangzhong.proxy.talent.TalentProxy;
	import com.liangzhong.proxyconstant.talent.TalentProxyConstant;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	/**
	 *天赋
	 *  
	 * @author Administrator
	 * 
	 */	
	public class TalentCommand extends SimpleCommand
	{
		public function TalentCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void
		{
			var proxy:TalentProxy	= facade.retrieveProxy(TalentProxy.PROXYNAME) as TalentProxy;
			switch(notification.getName())
			{
				case TalentProxyConstant.TALENT_INFO:
					proxy.requestTalentInfo();
					break;
				case TalentProxyConstant.ACTIVATE_TALENT:
					proxy.requestactivateTalent(notification.getBody());
					break;
				case TalentProxyConstant.RESET_TALENT:
					proxy.requestResetTalent(notification.getBody());
					break;
			}
		}
	}
}